<?php
namespace ZyucMini\Components\Expert\Models;

use ZyucMini\Core\Model;

// 专家表
class User extends Model
{
    protected $connection = 'uxt';
    protected $table = 'exp_user';
    protected $primaryKey = 'user_id';

    // 获取专家列表
    public function getActives()
    {
        return $this
            ->where('user_id', '!=', 467)
            ->where('status', '=', 0)
            ->fields([
                'user_id',
                'user_name'
            ])
            ->all();
    }
}
?>